package com.qst.system.domain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.sql.Timestamp;

/**
 * 企业详情视图对象，用于封装连表查询结果
 */
public class CompanyDetailsVo {

    // 企业基本信息（来自company表）
    private String comName;      // 企业名称
    private String comStatus;          // 企业状态

    // 企业详情信息（来自com_details表）
    private String cIntegral;        // 企业积分
    private String cType;            // 企业类型
    private String cLegalName;       // 法人姓名
    private String cLegalId;         // 法人证件号
    private String cDel;           // 删除标识
    private String cLicense;
    private Timestamp cLegalTime;    // 法人证件有效期
    private String cBusSco;
    private Timestamp cLicTime;      // 营业执照有效期
    private Long cId;
    private Long coId;               // 公司ID
    private String cPro;
    private String cCity;
    private String cAddress;
    private String cLegalImg;


    // 省份信息（来自provinces表）
    private String provinceId;       // 省份ID
    private String province;         // 省份名称

    // 城市信息（来自cities表）
    private String cityId;           // 城市ID
    private String city;             // 城市名称

    // 原有字段的getter和setter方法


    public String getcLegalImg() {
        return cLegalImg;
    }

    public void setcLegalImg(String cLegalImg) {
        this.cLegalImg = cLegalImg;
    }

    public String getcAddress() {
        return cAddress;
    }

    public void setcAddress(String cAddress) {
        this.cAddress = cAddress;
    }

    public String getcPro() {
        return cPro;
    }

    public void setcPro(String cPro) {
        this.cPro = cPro;
    }

    public String getcCity() {
        return cCity;
    }

    public void setcCity(String cCity) {
        this.cCity = cCity;
    }

    public String getComName() {
        return comName;
    }

    public void setComName(String comName) {
        this.comName = comName;
    }

    public String getComStatus() {
        return comStatus;
    }

    public void setComStatus(String comStatus) {
        this.comStatus = comStatus;
    }

    public String getcDel() {
        return cDel;
    }

    public void setcDel(String cDel) {
        this.cDel = cDel;
    }

    public Long getCoId() {
        return coId;
    }

    public void setCoId(Long coId) {
        this.coId = coId;
    }

    public Long getcId() {
        return cId;
    }

    public void setcId(Long cId) {
        this.cId = cId;
    }

    public String getCompanyName() {
        return comName;
    }

    public void setCompanyName(String companyName) {
        this.comName = companyName;
    }

    public String getcIntegral() {
        return cIntegral;
    }

    public void setcIntegral(String cIntegral) {
        this.cIntegral = cIntegral;
    }

    public String getcType() {
        return cType;
    }

    public void setcType(String cType) {
        this.cType = cType;
    }

    public String getcLegalName() {
        return cLegalName;
    }

    public void setcLegalName(String cLegalName) {
        this.cLegalName = cLegalName;
    }

    public String getcLegalId() {
        return cLegalId;
    }

    public void setcLegalId(String cLegalId) {
        this.cLegalId = cLegalId;
    }

    public String getcStatus() {
        return comStatus;
    }

    public void setcStatus(String cStatus) {
        this.comStatus = cStatus;
    }

    public String getComDel() {
        return cDel;
    }

    public void setComDel(String cDel) {
        this.cDel = cDel;
    }

    // 新增的省份相关字段的getter和setter方法
    public String getProvinceId() {
        return provinceId;
    }

    public void setProvinceId(String provinceId) {
        this.provinceId = provinceId;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    // 新增的城市相关字段的getter和setter方法
    public String getCityId() {
        return cityId;
    }

    public void setCityId(String cityId) {
        this.cityId = cityId;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getcLicense() {
        return cLicense;
    }

    public void setcLicense(String cLicense) {
        this.cLicense = cLicense;
    }

    public Timestamp getcLegalTime() {
        return cLegalTime;
    }

    public void setcLegalTime(Timestamp cLegalTime) {
        this.cLegalTime = cLegalTime;
    }

    public String getcBusSco() {
        return cBusSco;
    }

    public void setcBusSco(String cBusSco) {
        this.cBusSco = cBusSco;
    }

    public Timestamp getcLicTime() {
        return cLicTime;
    }

    public void setcLicTime(Timestamp cLicTime) {
        this.cLicTime = cLicTime;
    }

    @Override
    public String toString() {
        return "CompanyDetailsVo{" +
                "comName='" + comName + '\'' +
                ", comStatus='" + comStatus + '\'' +
                ", cIntegral='" + cIntegral + '\'' +
                ", cType='" + cType + '\'' +
                ", cLegalName='" + cLegalName + '\'' +
                ", cLegalId='" + cLegalId + '\'' +
                ", cDel='" + cDel + '\'' +
                ", cLicense='" + cLicense + '\'' +
                ", cLegalTime=" + cLegalTime +
                ", cBusSco='" + cBusSco + '\'' +
                ", cLicTime=" + cLicTime +
                ", cId=" + cId +
                ", coId=" + coId +
                ", cPro='" + cPro + '\'' +
                ", cCity='" + cCity + '\'' +
                ", cAddress='" + cAddress + '\'' +
                ", cLegalImg='" + cLegalImg + '\'' +
                ", provinceId='" + provinceId + '\'' +
                ", province='" + province + '\'' +
                ", cityId='" + cityId + '\'' +
                ", city='" + city + '\'' +
                '}';
    }
}
